package Testwork;

abstract class Person {
	public String name;
	public String adress;
	public String phonenumber;
	public String email;
	public int age;
	public String gender;

	

	public Person(String name, String adress, String phonenumber, String email, int age, String gender) {
		this.name = name;
		this.adress = adress;
		this.phonenumber = phonenumber;
		this.email = email;
		this.age = age;
		this.gender = gender;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAdress() {
		return adress;
	}

	public void setAdress(String adress) {
		this.adress = adress;
	}

	public String getPhonenumber() {
		return phonenumber;
	}

	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}


	@Override
	public String toString() {
		return "Person [name=" + name + ", adress=" + adress + ", phonenumber=" + phonenumber + ", email=" + email
				+ ", age=" + age + ", gender=" + gender + "]";
	}

}
